<tr>
<?php foreach ($fields as $field_name ){?>
    <td><?php echo $field_name?></td>
<?php }?>

</tr>